<?php foreach($chats["chats"] as $chat): ?>
    <div class="chatcontent">
    <?php if ($chat['Chat']['from'] == $this->session->get('user_id')): ?>
        <strong>Me :</strong>
    <?php else: ?>
        <strong><?php echo $chats['recipients']['User']['name'] ?> :</strong>
    <?php endif ?>
    <?php echo $chat['Chat']['content'] ?>
    </div>
<?php endforeach ?>
